package cn.qingyun.gis.modules.scenes.mapper;

import cn.qingyun.gis.modules.alongstreet.request.BusinessRequest;
import cn.qingyun.gis.modules.scenes.entity.IntentionInfo;
import cn.qingyun.gis.modules.scenes.entity.PoiScenarioProofread;
import cn.qingyun.gis.modules.scenes.request.BusinessContentRequest;
import cn.qingyun.gis.modules.scenes.request.BusinessMarketingRequest;
import cn.qingyun.gis.modules.scenes.request.IntentionInfoRequest;
import cn.qingyun.gis.modules.scenes.response.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author guest
 * @since 2024-04-27
 */
public interface PoiScenarioProofreadMapper extends BaseMapper<PoiScenarioProofread> {
    /**
     * 商机历史记录查询
     * @param request
     * @return
     */
    List<IntentionRecordResponse> selectIntentionInfoList(@Param("request") IntentionInfoRequest request,@Param("table") String table);

    /**
     * 查询随访poi归属人工号
     * @param id
     * @param table
     * @return
     */
    BelongPeopleResponse queryBelongKwPhone(@Param("id") String id, @Param("table") String table);

    /**
     * 查询商机列表
     * @param request
     * @return
     */
    List<IntentionToWgtResponse> selectBusiness(@Param("request") BusinessContentRequest request);

    /**
     * 商机详情查询
     * @param request
     * @return
     */
    BusinessTempResponse selectBusinessDetail(@Param("request") BusinessMarketingRequest request);

    /**
     * 营销商机状态
     * @param intentionInfo
     * @param request
     */
    void updateIntentionInfo(@Param("intentionInfo") String intentionInfo, @Param("request") BusinessMarketingRequest request);
}
